﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SharePointExplorer
{
    public partial class Login : Form
    {
        public string Username { get { return tUsername.Text; } set { tUsername.Text = value; } }
        public string Password { get { return tPassword.Text; } set { tPassword.Text = value; } }
        public string Domain { get { return tDomain.Text; } set { tDomain.Text = value; } }
        public string Info { get { return lInfo.Text; } set { lInfo.Text = value; } }
        public Login()
        {
            InitializeComponent();
            tUsername.Text = System.Environment.GetEnvironmentVariable("USERNAME");
            tDomain.Text = System.Environment.GetEnvironmentVariable("USERDOMAIN");
            tPassword.Text = "";
        }

        private void Login_Shown(object sender, EventArgs e)
        {
            tPassword.Focus();
        }

    }
      
}
